 define(function(require, exports, module) {
     "use strict";
     var $ = require("$"),
         app = require("dist/application/app"),
         config = app.config;
     exports.run = function(data) {
         switch (data.status) {
             case 0:
                 {
                    if(data.message&&data.message.length){
                        config.msg.suc(data.message, data.url); 
                    }else{
                        if(data.url&&data.url.length){
                             window.parent.mainFrame ? window.parent.document.getElementById("mainFrame").src = data.url : window.location = data.url;
                        }
                    }   
                    break;
                 }
                 // case 1:
                 //     {
                 //         config.msg.error(data.message || config.lang.saveError, data.url)
                 //         break;
                 //     }
             default:
                 {
                     config.msg.info(data.message || config.lang.exception, data.url)
                     break;
                 }
         }
         data.callback&&eval(data.callback)
     };
     return exports;
 })
